package arithmetic;

import java.util.*;

public class Arithmetic {

	public static void main(String[] args) {
		Double j;
		while(true) {
		Scanner  oper = new Scanner(System.in);  
		System.out.print("输入第一个操作数：");  
        Double operationNum1 = oper.nextDouble();  
        System.out.print("输入运算符：");  
        String operators = oper.next();
        char coperator = operators.charAt(0);
        System.out.print("输入第二个操作数：");  
        Double operationNum2 = oper.nextDouble();  
		
		CalculationFactory calculationFactory = new CalculationFactory();
		Calculation operAction = calculationFactory.getOperation(coperator);
		operAction.Calculation(operationNum1, operationNum2);
		}
		
	}

}
